<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="u" uri="/iuie-tag"%>
<%@ taglib prefix="sys" uri="/sys-tag"%>
<%@ taglib prefix="lui" tagdir="/WEB-INF/tags"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改书籍信息</title>
</head>

<lui:context />
<u:View basePath="/res-datum/book" userJS="book" userCSS="book"
	delayLoadJs="false">
	<body>
	    <lui:dialogBody>
	        <sys:dropCodeSet codeTypes="bookProgress" id="codeSet" />
	        <form class="m-cust" id='updateFrm'>
	          <lui:ajax url="${ctx }/book/update/save" id="saveUpdateAjax" formQuery="#updateFrm" formSubmit="true" onSuccess="BookPage.onUpdateSucc" 
		        contentType="application/x-www-form-urlencoded" type="post"/>
				<div class="form-group m-narrow row m-narrow">
					<div class="col-sm-4 col-md-4 col-xs-4">
						<label class="m-label m-float-right" for="oldFileName">进度：</label>
					</div>
					<div class="col-sm-8 col-md-8  col-xs-8">
					   <lui:dropList id="progress" name="progress"
								dropValues="codeSet.bookProgress"
								className="form-control m-input" />
					</div>
				</div>
				<div class="form-group m-narrow row m-narrow">
					<div class="col-sm-4 col-md-4 col-xs-4">
						<label class="m-label m-float-right" for="oldFileName">注释：</label>
					</div>
					<div class="col-sm-8 col-md-8  col-xs-8">
					   <textarea class='form-control m-input' id='comments' cols="45"
								rows="4" name='comments'  value="${requestScope.bookInfo.comments}"></textarea>
					</div>
				</div>
				<input type="hidden" value="${requestScope.bookInfo.bookId}" name="bookId">
			</form>
	    </lui:dialogBody>
	    <lui:dialogFooter>
	         <button class="btn btn-primary m-btn" type="button" onclick="BookPage.saveUpdateBook()">保存</button>
			 <button class="btn btn-default m-btn" type="button" data-dismiss="dialog-box">关闭</button>
	    </lui:dialogFooter>
	</body>
</u:View>
</html>